Integrand size = 22, antiderivative size = 151 \[ \int \frac {\sqrt {a+b x^n+c x^{2 n}}}{x^3} \, dx=-\frac {\sqrt {a+b x^n+c x^{2 n}} \operatorname {AppellF1}\left (-\frac {2}{n},-\frac {1}{2},-\frac {1}{2},-\frac {2-n}{n},-\frac {2 c x^n}{b-\sqrt {b^2-4 a c}},-\frac {2 c x^n}{b+\sqrt {b^2-4 a c}}\right )}{2 x^2 \sqrt {1+\frac {2 c x^n}{b-\sqrt {b^2-4 a c}}} \sqrt {1+\frac {2 c x^n}{b+\sqrt {b^2-4 a c}}}} \]
[Out]
Time = 0.09 (sec) , antiderivative size = 151, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.091, Rules used = {1399, 524} \[ \int \frac {\sqrt {a+b x^n+c x^{2 n}}}{x^3} \, dx=-\frac {\sqrt {a+b x^n+c x^{2 n}} \operatorname {AppellF1}\left (-\frac {2}{n},-\frac {1}{2},-\frac {1}{2},-\frac {2-n}{n},-\frac {2 c x^n}{b-\sqrt {b^2-4 a c}},-\frac {2 c x^n}{b+\sqrt {b^2-4 a c}}\right )}{2 x^2 \sqrt {\frac {2 c x^n}{b-\sqrt {b^2-4 a c}}+1} \sqrt {\frac {2 c x^n}{\sqrt {b^2-4 a c}+b}+1}} \]
[In]
[Out]
Rule 524
Rule 1399
Rubi steps \begin{align*} \text {integral}& = \frac {\sqrt {a+b x^n+c x^{2 n}} \int \frac {\sqrt {1+\frac {2 c x^n}{b-\sqrt {b^2-4 a c}}} \sqrt {1+\frac {2 c x^n}{b+\sqrt {b^2-4 a c}}}}{x^3} \, dx}{\sqrt {1+\frac {2 c x^n}{b-\sqrt {b^2-4 a c}}} \sqrt {1+\frac {2 c x^n}{b+\sqrt {b^2-4 a c}}}} \\ & = -\frac {\sqrt {a+b x^n+c x^{2 n}} F_1\left (-\frac {2}{n};-\frac {1}{2},-\frac {1}{2};-\frac {2-n}{n};-\frac {2 c x^n}{b-\sqrt {b^2-4 a c}},-\frac {2 c x^n}{b+\sqrt {b^2-4 a c}}\right )}{2 x^2 \sqrt {1+\frac {2 c x^n}{b-\sqrt {b^2-4 a c}}} \sqrt {1+\frac {2 c x^n}{b+\sqrt {b^2-4 a c}}}} \\ \end{align*}
Leaf count is larger than twice the leaf count of optimal. \(365\) vs. \(2(151)=302\).
Time = 0.49 (sec) , antiderivative size = 365, normalized size of antiderivative = 2.42 \[ \int \frac {\sqrt {a+b x^n+c x^{2 n}}}{x^3} \, dx=\frac {2 (-2+n) \left (a+x^n \left (b+c x^n\right )\right )-a (-2+n) n \sqrt {\frac {b-\sqrt {b^2-4 a c}+2 c x^n}{b-\sqrt {b^2-4 a c}}} \sqrt {\frac {b+\sqrt {b^2-4 a c}+2 c x^n}{b+\sqrt {b^2-4 a c}}} \operatorname {AppellF1}\left (-\frac {2}{n},\frac {1}{2},\frac {1}{2},\frac {-2+n}{n},-\frac {2 c x^n}{b+\sqrt {b^2-4 a c}},\frac {2 c x^n}{-b+\sqrt {b^2-4 a c}}\right )+b n x^n \sqrt {\frac {b-\sqrt {b^2-4 a c}+2 c x^n}{b-\sqrt {b^2-4 a c}}} \sqrt {\frac {b+\sqrt {b^2-4 a c}+2 c x^n}{b+\sqrt {b^2-4 a c}}} \operatorname {AppellF1}\left (\frac {-2+n}{n},\frac {1}{2},\frac {1}{2},2-\frac {2}{n},-\frac {2 c x^n}{b+\sqrt {b^2-4 a c}},\frac {2 c x^n}{-b+\sqrt {b^2-4 a c}}\right )}{2 (-2+n)^2 x^2 \sqrt {a+x^n \left (b+c x^n\right )}} \]
[In]
[Out]
\[\int \frac {\sqrt {a +b \,x^{n}+c \,x^{2 n}}}{x^{3}}d x\]
[In]
[Out]
Exception generated. \[ \int \frac {\sqrt {a+b x^n+c x^{2 n}}}{x^3} \, dx=\text {Exception raised: TypeError} \]
[In]
[Out]
\[ \int \frac {\sqrt {a+b x^n+c x^{2 n}}}{x^3} \, dx=\int \frac {\sqrt {a + b x^{n} + c x^{2 n}}}{x^{3}}\, dx \]
[In]
[Out]
\[ \int \frac {\sqrt {a+b x^n+c x^{2 n}}}{x^3} \, dx=\int { \frac {\sqrt {c x^{2 \, n} + b x^{n} + a}}{x^{3}} \,d x } \]
[In]
[Out]
\[ \int \frac {\sqrt {a+b x^n+c x^{2 n}}}{x^3} \, dx=\int { \frac {\sqrt {c x^{2 \, n} + b x^{n} + a}}{x^{3}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {\sqrt {a+b x^n+c x^{2 n}}}{x^3} \, dx=\int \frac {\sqrt {a+b\,x^n+c\,x^{2\,n}}}{x^3} \,d x \]
[In]
[Out]